package com.woniu.dao;

import com.woniu.pojo.HotCollect;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface HotCollectMapper {
    int deleteByPrimaryKey(Long id);

    int insert(HotCollect record);

    int insertSelective(HotCollect record);

    HotCollect selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(HotCollect record);

    int updateByPrimaryKey(HotCollect record);
@Select("select * from hot_collect where hot_id=#{hotId} and user_id=#{userId}")
    HotCollect selectCollect(@Param("hotId") Long hotId,@Param("userId") Long userId);
    @Delete("delete from hot_collect where hot_id=#{hotId} and user_id=#{userId}")
    void deleteCollect(Long hotId, Long userId);
    @Delete("delete from hot_collect where hot_id=#{hotId} ")
    void delete(Long hotId);
}